package structure.adapter;

/**
 * 需要遵守的标准
 */
public interface Player {
	void play(String type,String name);
}

class Mp3Player implements Player{
	@Override
	public void play(String type, String name) {
		System.out.println("播放 mp3");
	}
}

class Mp4Player implements Player{
	@Override
	public void play(String type, String name) {
		System.out.println("播放Mp4");
	}
}